#ifndef SERVER_H_
#define SERVER_H_
#include <QDebug>
#include <QTcpServer>
#include <QTcpSocket>
#include <QHostAddress>
#include <QFile>
#include <QByteArray>
#include "connectthread.h"
#include "updateinfo.h"
class Server : public QTcpServer{
    Q_OBJECT
public:
    Server(QObject *parent=0);
    ~Server();
    bool listenConnect();
private slots:
    void incomingConnection(int socketId);
private:
    UpdateInfo updateInfo;      //更新文件的信息
    QList<QByteArray> fileArray;//保存客户端要更新的文件
};
#endif /* SERVER_H_ */
